package repository

import (
	"ruoyi-go-echo-ddd/internal/domain/model"

	"github.com/labstack/echo/v4"
)

type TokenRepository interface {
	CreateToken(e echo.Context, loginUser *model.LoginUser) (string, error)
	CacheToken(e echo.Context, uuid, token string) error
	GetLoginUser(e echo.Context) (*model.LoginUser, error)
	SetLoginUser(e echo.Context, loginUser *model.LoginUser) error
	DeleteLoginUser(e echo.Context) error
	GetToken(e echo.Context, tokenKey, authPrefix string) (string, error)
}
